/* 全局样式 - 使用现代UI设计颜色方案 */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(0, 0, 0, 0.1);
    --shadow-depth: rgba(0, 0, 0, 0.03);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 深色模式支持 - 优化深色主题体验 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #6366f1;
        --primary-light: #818cf8;
        --primary-dark: #4f46e5;
        --secondary: #a78bfa;
        --success: #34d399;
        --warning: #fbbf24;
        --danger: #f87171;
        --info: #22d3ee;
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border: #475569;
        --border-light: #334155;
        --shadow: rgba(0, 0, 0, 0.2);
        --shadow-hover: rgba(0, 0, 0, 0.3);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 背景网格装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0.4;
}

/* 顶部背景装饰 */
.top-decoration {
    position: fixed;
    top: -200px;
    left: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.03;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    transition: opacity 0.8s var(--transition-base);
}

/* 底部背景装饰 */
.bottom-decoration {
    position: fixed;
    bottom: -200px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.03;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    transition: opacity 0.8s var(--transition-base);
}

/* 全局悬停效果增强 */
body:hover .top-decoration,
body:hover .bottom-decoration {
    opacity: 0.06;
}

/* 容器样式 - 增加深度感和玻璃态效果 */
.container {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px var(--shadow), 0 0 0 1px var(--border-light);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: fadeIn var(--transition-slow) ease-out;
    position: relative;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
}

/* 容器悬浮效果 */
.container:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px var(--shadow-hover), 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 容器装饰元素 */
.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.03) 0%, transparent 70%);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

/* 旋转动画 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 头部样式 - 增强视觉层次感 */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--success);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 头部装饰元素 */
.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, 10px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    position: relative;
    z-index: 10;
}

.logo-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    width: 32px;
    height: 32px;
    color: white;
}

.title-section h1 {
    font-size: 2.5rem;
    margin: 0 0 5px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.description {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    font-weight: 400;
}

/* 内容区域 */
.content {
    padding: 30px;
    position: relative;
    z-index: 20;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    margin-bottom: 20px;
    margin-right: 15px;
    outline: none;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 按钮发光效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

/* 按钮悬停效果 */
.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* 按钮激活效果 */
.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3), 0 4px 12px rgba(67, 97, 238, 0.3);
}

/* 按钮图标 */
.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: rotate(15deg) scale(1.1);
}

/* 次要按钮样式 */
.btn-secondary {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow-depth), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    box-shadow: 0 4px 12px var(--shadow), 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-3px) scale(1.02);
}

.btn-secondary:hover .btn-icon {
    transform: rotate(15deg) scale(1.1);
}

/* 加载状态 */
.loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    animation: fadeIn var(--transition-base) ease-out;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 结果区域 */
#result {
    margin-top: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 6px 24px var(--shadow-depth), 0 0 0 1px var(--border-light);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
}

#result:hover {
    box-shadow: 0 8px 30px var(--shadow), 0 2px 4px rgba(0, 0, 0, 0.1);
}

#result.result-area.empty {
    padding: 80px 30px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

#result.result-area.empty::before {
    content: '📊';
    font-size: 5rem;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
    animation: bounceIn 1s ease-out;
}

#result.result-area.empty p {
    font-size: 1.2rem;
    margin: 0;
    max-width: 400px;
    line-height: 1.5;
}

/* 表格容器样式 */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 24px var(--shadow-depth), 0 0 0 1px var(--border-light);
    background: var(--bg-secondary);
    backdrop-filter: blur(8px);
    margin-top: 24px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.table-container:hover {
    box-shadow: 0 8px 30px var(--shadow), 0 0 0 1px var(--border-light);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* 表头样式 */
th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 24px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px;
    position: relative;
    z-index: 10;
    border-bottom: 3px solid var(--success);
    transition: all var(--transition-base);
}

th:first-child {
    border-top-left-radius: var(--radius-lg);
}

th:last-child {
    border-top-right-radius: var(--radius-lg);
}

/* 表头装饰 */
th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    z-index: 1;
}

/* 表格单元格样式 */
td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
    transition: all var(--transition-base);
    position: relative;
    font-weight: 400;
}

td:first-child {
    font-weight: 600;
    color: var(--primary);
}

/* 表格行样式 */
tr {
    transition: all var(--transition-base);
}

tr:last-child td {
    border-bottom: none;
}

tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-lg);
}

tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-lg);
}

/* 行悬停效果 */
tr:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.005);
}

tr:hover td {
    color: var(--primary);
}

/* 单元格悬停装饰 */
tr td::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

tr:hover td::after {
    width: 100%;
}

/* 斑马条纹效果 */
tr:nth-child(even) td {
    background-color: rgba(0, 0, 0, 0.01);
}

tr:nth-child(even):hover td {
    background-color: var(--bg-tertiary);
}

/* 错误样式 */
.error {
    background-color: #fff0f6;
    border-left: 4px solid var(--danger);
    color: #be185d;
    padding: 24px;
    border-radius: var(--radius);
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: slideInFromLeft var(--transition-base) ease-out;
}

@keyframes slideInFromLeft {
    from { transform: translateX(-10px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.error-icon {
    font-size: 24px;
    color: var(--danger);
    flex-shrink: 0;
    margin-top: 2px;
}

/* 统计卡片 */
.stats {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
    perspective: 1000px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 24px var(--shadow-depth), 0 0 0 1px var(--border-light);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--border-light);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.05;
    z-index: 0;
}

/* 卡片悬停效果 */
.stat-card:hover {
    transform: translateY(-8px) scale(1.02) rotateX(5deg);
    box-shadow: 0 12px 30px var(--shadow), 0 0 0 1px var(--border-light);
}

/* 统计图标 */
.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    z-index: 1;
}

.stat-card:hover .stat-icon {
    transform: rotate(15deg) scale(1.1);
}

/* 统计内容 */
.stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-content h3 {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-value {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

/* 搜索框样式 */
.search-container {
    margin-bottom: 30px;
    text-align: center;
    display: none;
    animation: slideUp 0.6s ease-out;
}

.search-wrapper {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    box-shadow: 0 6px 24px var(--shadow-depth), 0 0 0 1px var(--border-light);
    overflow: hidden;
    transition: all 0.4s var(--transition-base);
    position: relative;
    border: 1px solid var(--border-light);
}

.search-wrapper:hover {
    box-shadow: 0 10px 30px var(--shadow), 0 0 0 1px var(--border-light);
    transform: translateY(-3px);
}

.search-wrapper:focus-within {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), 0 8px 25px var(--shadow);
}

/* 搜索图标 */
.search-icon {
    padding: 0 18px;
    color: var(--primary);
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.search-wrapper:focus-within .search-icon {
    opacity: 1;
}

/* 搜索输入框 */
.search-input {
    flex: 1;
    padding: 18px 15px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
    background: transparent;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.search-wrapper:focus-within .search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* 搜索按钮 */
.search-btn {
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    cursor: pointer;
    transition: all 0.4s var(--transition-base);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-btn:hover::before {
    width: 200px;
    height: 200px;
}

.search-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.search-btn:active {
    transform: scale(0.98);
}

/* 聊天机器人样式 */
.chatbot-container {
    display: none;
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    border-radius: var(--radius-lg);
    animation: fadeIn var(--transition-slow) ease-out;
    position: relative;
    overflow: hidden;
}

/* 聊天机器人背景装饰 */
.chatbot-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.chatbot-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-header h3 i {
    color: var(--primary);
}

.chatbot-features {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
}

.chatbot-features i {
    font-size: 18px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.chatbot-features i:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* 聊天机器人iframe容器 */
.chatbot-iframe-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 24px var(--shadow-depth), 0 0 0 1px var(--border-light);
    transition: all 0.4s var(--transition-base);
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.chatbot-iframe-wrapper:hover {
    box-shadow: 0 10px 30px var(--shadow), 0 0 0 1px var(--border-light);
    transform: translateY(-3px);
}

.chatbot-iframe-wrapper iframe {
    transition: opacity var(--transition-base);
}

.chatbot-iframe-wrapper iframe:hover {
    opacity: 0.98;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn var(--transition-base) ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 滑动动画 */
.slide-up {
    animation: slideUp var(--transition-base) ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 弹跳动画 */
.bounce-in {
    animation: bounceIn var(--transition-base) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.8); }
    70% { opacity: 1; transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 脉冲动画 */
.pulse {
    animation: pulse var(--transition-slow) ease-in-out infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.02); }
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 100;
    margin-bottom: 8px;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--text-primary);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 100;
    margin-bottom: 0;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .content {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        padding: 16px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    th, td {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .chatbot-container {
        padding: 20px;
        margin-top: 30px;
    }
    
    .chatbot-container h2 {
        font-size: 1.4rem;
    }
    
    .loading {
        padding: 40px 15px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    #result.empty {
        padding: 40px 15px;
    }
    
    #result.empty::before {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .content {
        padding: 15px;
    }
    
    th, td {
        padding: 12px 14px;
        font-size: 12px;
    }
    
    .search-input {
        padding: 12px 20px;
        font-size: 14px;
    }
}